<?php
$vurl = $_REQUEST['vod_url'];
?>
<meta charset="UTF-8">
<style type="text/css">
    body,html{width:100%;height:100%;background:#000;padding:0;margin:0;overflow-x:hidden;overflow-y:hidden}
    *{margin:0;border:0;padding:0;text-decoration:none}
    #stats{position:absolute;top:5px;left:6px;font-size:10px;color:#fdfdfd;z-index:2147;text-shadow:1px 1px 1px #000, 1px 1px 1px #000}
    #vplayer{position:inherit;}

    .vjs-paused .vjs-big-play-button,
    .vjs-paused.vjs-has-started .vjs-big-play-button {
        display: block;
    }
</style>
<link href="//vjs.zencdn.net/7.3.0/video-js.min.css" rel="stylesheet">
<video id="vplayer" class="video-js vjs-big-play-centered" preload="auto" data-setup='{}'>
</video>
<div id="stats"></div>

<script src="//vjs.zencdn.net/7.3.0/video.min.js"></script>
<script>
    var vurl ='<?php echo $vurl?>';
    var option={controls:true,autoplay:false,preload: 'auto', playbackRates: [ 1,2,4]};
    /*option只是一个参数,function onPlayerReady就是播放器初始化完成时会执行的回调函数*/
    var myPlayer = videojs('vplayer',option,function onPlayerReady(){
        var _this = this;
        _this.src({src: vurl, type: "application/x-mpegURL"});
        _this.play();
        _this.on('ended', function() {
            window.parent.location.href=window.parent.cms_player.next_path;
        });

    });

</script>
